package com.springboot.returndata.dto;

import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import java.util.List;
import jakarta.validation.constraints.NotNull;

@Data
public class AddUpdateUserRoleDto {

   @NotNull(message = "用户不能为空")
    private Integer userId;

    @NotEmpty(message = "角色不能为空")
    private List<String> roleIds;

}
